import { createRouter, createWebHashHistory } from "vue-router";
export const router = createRouter({
	history: createWebHashHistory(), //hash模式
	routes: [
		{
			path: "/search",
			component: () => import("../views/search/index.vue"), //路由懒加载
		},
		{
			path: "/home",
			component: () => import("../views/home/index.vue"),
		},
		{
			path: "/login",
			component: () => import("../views/login/index.vue"),
		},
		{
			path: "/register",
			component: () => import("../views/register/index.vue"),
		},
		{
			path: "/",
			component: () => import("../views/register/index.vue"),
		},
	],
});
